package rapier.sso.server.handler;

import rapier.sso.server.model.AppCredential;

/**
 * 权限验证
 * 
 * @author chenkw
 *
 */
public interface IAppAuthHandler {
	
	/**
	 * 是否支持
	 * @param credential
	 * @return
	 */
	public boolean support(AppCredential credential);
	
	/**
	 * 验证
	 * @param credential
	 * @return
	 */
	public boolean auth(AppCredential credential);

	/**释放
	 * @param credential
	 */
	public void release(AppCredential credential);
}
